@using Rail.Net.Core.Model
@model Ru

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Ru</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Code</div>
    <div class="display-field">@Model.Code</div>

    <div class="display-label">CodeLong</div>
    <div class="display-field">@Model.CodeLong</div>

    <div class="display-label">Stations</div>
    <div class="display-field">@(Model.Stations == null ? "None" : Model.Stations.Count.ToString())</div>

    <div class="display-label">RelationRus</div>
    <div class="display-field">@(Model.RelationRus == null ? "None" : Model.RelationRus.Count.ToString())</div>

    <div class="display-label">PriceDistances</div>
    <div class="display-field">@(Model.PriceDistances == null ? "None" : Model.PriceDistances.Count.ToString())</div>

    <div class="display-label">PriceSerials</div>
    <div class="display-field">@(Model.PriceSerials == null ? "None" : Model.PriceSerials.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>


